import axios from './config'

export async function addBookToMyBookShelf (bookId) {
  return axios.post('/bookShelf', {
    bookId
  })
}

export async function deleteBookFromMyBookShelf (id) {
  return axios.delete('/bookShelf', {
    params: {
      id
    }
  })
}

export async function findAllBookInMyMyBookShelf ({ page = 0, pageSize = 20 } = {}) {
  return axios.get('/bookShelf', {
    params: {
      page,
      pageSize
    }
  })
}
